// ... existing code ...
const loadComponent = (component: string) => {
  // 处理包含 @ 别名的路径
  if (component.startsWith('@/')) {
    // 将 @/ 替换为相对路径 src/
    const relativePath = component.replace('@/', '/src/');
    return () => import(relativePath);
  }
  return () => import(`${component}`)
}
// ... existing code ...